var Net = require('../../common')
Page({
  data: {
    Info: {}
  },
  onLoad: function (options) {
    console.log(Net.getSync('Info'))
    Net.data({
      Info: Net.getSync('Info')
    })
  },
  onToUserInfo(e) {
    Net.PageRoter('_onUserInfo', '', 'nav')
  },
  onJumpAdmirers() {
    Net.PageRoter('_onAddressList', '', 'nav')
  },
  onCreateActivity() {
    wx.vibrateShort()
    wx.showModal({
      title: '温馨提示',
      content: '您确定退出此账户？',
      success(res) {
        if (res.confirm) {
          wx.clearStorage()
          Net.toast('退出成功', 'success')
          setTimeout(() => {
            Net.PageRoter('_loginGuide', '', 'rel')
          }, 100);
        }
      }
    })
  },
  on(){
    // wx.vibrateShort()
    // setTimeout(() => {
    //   this.on()
    // }, 100);
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
  onShareAppMessage: function () {}
})